//
//  NetworkTools.h
//  huikandian
//
//  Created by ztfgz on 2018/9/18.
//  Copyright © 2018年 ztfgz. All rights reserved.
//


#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@interface NetworkTools : NSObject


//
+ (void)orientationToPortrait:(UIInterfaceOrientation)orientation;

// 时间戳 转换
+ (NSString *)timeStampConversionTime:(NSString *)str;


// 合并 网址 url
+ (NSString *)RequestnetworkString:(NSString *)str;


+ (UIImage*)OriginImage:(UIImage *)image scaleToSize:(CGSize)size;

+ (UIAlertController *)showAlertController:(UIViewController *)vc;


// GET
+ (void)GET:(NSString *)urlString parameters:(id)parameters success:(void (^) (id responseObject))success failure:(void (^) (NSError *error))failure;

// POST
+ (void)POST:(NSString *)urlString parameters:(id)parameters success:(void (^)(id))success failure:(void (^) (NSError *))failure;



@end

